const { app, BrowserWindow } = require('electron')
const path = require("path")

const createWindow = () => {
    const mainWindow = new BrowserWindow({
        width: 800,
        height: 600,
    })

    //mainWindow.loadFile(path.join(__dirname, "./index.html"));
    mainWindow.loadURL("http://localhost:3004/");
}

app.whenReady().then(() => {
    createWindow()
})

app.on("certificate-error",
    function (event, webContents, url, error, certificate, callback) {
        event.preventDefault();
        callback(true);
    }
);
